pub fn add(left: usize, right: usize) -> usize {
    left + right
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn it_works() {
        let result = add(2, 2);
        println!("成功的结果={}", result);
        assert_eq!(result, 4);
    }

    #[test]
    fn it_works_fail() {
        let result = add(3, 2);
        println!("失败的结果={}", result);
        assert_eq!(result, 4);
    }

    /// 只运行被忽略的测试
    /// cargo test -- --ignored
    /// 运行所有测试
    /// cargo test -- --include-ignored
    #[test]
    #[ignore]
    fn test1(){
        assert_eq!(1+3,4);
    }


}
